using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace XiaoMan.Model.Models.Mapping
{
    public class Msg_Message201801Map : EntityTypeConfiguration<Msg_Message201801>
    {
        public Msg_Message201801Map()
        {
            // Primary Key
            this.HasKey(t => t.MsgID);

            // Properties
            this.Property(t => t.MsgContent)
                .HasMaxLength(150);

            // Table & Column Mappings
            this.ToTable("Msg_Message201801");
            this.Property(t => t.MsgID).HasColumnName("MsgID");
            this.Property(t => t.SendUserID).HasColumnName("SendUserID");
            this.Property(t => t.ReceiveUserID).HasColumnName("ReceiveUserID");
            this.Property(t => t.MsgContent).HasColumnName("MsgContent");
            this.Property(t => t.IsRead).HasColumnName("IsRead");
            this.Property(t => t.IsSenderDel).HasColumnName("IsSenderDel");
            this.Property(t => t.IsReceiverDel).HasColumnName("IsReceiverDel");
            this.Property(t => t.IsCallback).HasColumnName("IsCallback");
            this.Property(t => t.CreateTime).HasColumnName("CreateTime");
        }
    }
}
